package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.DeliverAssignRecordMapper;
import com.ktgj.flight.domain.DeliverAssignRecord;
import com.ktgj.flight.service.IDeliverAssignRecordService;

/**
 * 机票预订_机票订单配送记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class DeliverAssignRecordServiceImpl implements IDeliverAssignRecordService 
{
    @Autowired
    private DeliverAssignRecordMapper deliverAssignRecordMapper;

    /**
     * 查询机票预订_机票订单配送记录
     * 
     * @param deliverAssignRecordId 机票预订_机票订单配送记录ID
     * @return 机票预订_机票订单配送记录
     */
    @Override
    public DeliverAssignRecord selectDeliverAssignRecordById(Long deliverAssignRecordId)
    {
        return deliverAssignRecordMapper.selectDeliverAssignRecordById(deliverAssignRecordId);
    }

    /**
     * 查询机票预订_机票订单配送记录列表
     * 
     * @param deliverAssignRecord 机票预订_机票订单配送记录
     * @return 机票预订_机票订单配送记录
     */
    @Override
    public List<DeliverAssignRecord> selectDeliverAssignRecordList(DeliverAssignRecord deliverAssignRecord)
    {
        return deliverAssignRecordMapper.selectDeliverAssignRecordList(deliverAssignRecord);
    }

    /**
     * 新增机票预订_机票订单配送记录
     * 
     * @param deliverAssignRecord 机票预订_机票订单配送记录
     * @return 结果
     */
    @Override
    public int insertDeliverAssignRecord(DeliverAssignRecord deliverAssignRecord)
    {
        return deliverAssignRecordMapper.insertDeliverAssignRecord(deliverAssignRecord);
    }

    /**
     * 修改机票预订_机票订单配送记录
     * 
     * @param deliverAssignRecord 机票预订_机票订单配送记录
     * @return 结果
     */
    @Override
    public int updateDeliverAssignRecord(DeliverAssignRecord deliverAssignRecord)
    {
        return deliverAssignRecordMapper.updateDeliverAssignRecord(deliverAssignRecord);
    }

    /**
     * 批量删除机票预订_机票订单配送记录
     * 
     * @param deliverAssignRecordIds 需要删除的机票预订_机票订单配送记录ID
     * @return 结果
     */
    @Override
    public int deleteDeliverAssignRecordByIds(Long[] deliverAssignRecordIds)
    {
        return deliverAssignRecordMapper.deleteDeliverAssignRecordByIds(deliverAssignRecordIds);
    }

    /**
     * 删除机票预订_机票订单配送记录信息
     * 
     * @param deliverAssignRecordId 机票预订_机票订单配送记录ID
     * @return 结果
     */
    @Override
    public int deleteDeliverAssignRecordById(Long deliverAssignRecordId)
    {
        return deliverAssignRecordMapper.deleteDeliverAssignRecordById(deliverAssignRecordId);
    }
}
